/** @namespace iTalent */
import { InterfaceProxy } from 'mider'
import { defaultOptions } from './_options'

/** @lends iTalent# */
const interfaceOpt = {
  findPages: {
    name: '分页查找',
    url: '/v1/talent-api/resume/actions/findPages',
    method: 'post',
    data: {
      offset: Number,
      limit: Number,
      query: Object
    }
  },
  resumeUpload: {
    name: '新增',
    url: '/v1/talent-api/actions/create',
    method: 'post',
    data: Object
  },
  resumeDeleteById: {
    name: '删除',
    url: '/v1/talent-api/resume/actions/deleteById',
    method: 'post',
    data: {
      id: String
    }
  },
  resumeExportExcel: {
    name: '简历导出 Excel',
    url: '/v1/talent-api/resume-excel',
    method: 'get'
  }
}

/** @mixes iTalent */
const iTalent = new InterfaceProxy(interfaceOpt, defaultOptions)
export default iTalent
